<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <div id="app">

        <app-header>
            <template v-slot:title>
               主标题
            </template>
            <template #subtitle>
            二级标题
            </template>
            <template>
                    我是谁？我在哪！
            </template>

        </app-header>
    </div>

    <script src="../libs/vue/vue.js"></script>
    <script>
        new Vue({
            el: '#app',
            data: {
                title: '待办事项列表'
            },
            components: {
                AppHeader: {
                    template: `
                    <div>
                        <h1><slot name='title'></slot></h1>
                        <h2><slot name='subtitle'></slot></h2>
                        <h3><slot></slot></h3>
                    </div>
                        `
                }
            }
        })
    </script>
</body>

</html>